package com.ishopping.service.manage.mapper;

import com.github.abel533.mapper.Mapper;
import com.ishopping.api.manage.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends Mapper<Role> {
    /**
     * 通过用户id获取用户具备的角色
     * @param userId
     * @return List<Role>
     */
    List<Role> queryRolesByUserId(@Param("userId") Long userId);
}